package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资讯动态表
 * </p>
 *
 * @author 
 * @since 2025-11-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("news_update")
@NoArgsConstructor
public class NewsUpdate implements Serializable {


    private static final long serialVersionUID = 1L;


    public NewsUpdate(String title, LocalDate publishTime, String link, String content) {
        this.title = title;
        this.publishTime = publishTime;
        this.link = link;
        this.content = content;
    }

    /**
     * 主键
     */
    @TableId(value = "base_id", type = IdType.AUTO)
    private Long baseId;

    /**
     * 内容链接
     */
    @TableField("link")
    private String link;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableField("del_flag")
    @TableLogic
    private String delFlag;

    /**
     * 发布时间
     */
    @TableField("publish_time")
    private LocalDate publishTime;

    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
